package com.rm.zeyou.pay.wxpay.common;

/**
 * @Author ZhangKeChen
 * @Date 2022/11/1
 * @Description
 */

/**
 * 微信公众号请求地址配置
 */
public class WechatH5GetMsgUrlConstants {

    /**
     * 用code获取openid请求地址
     */
    public static String GetOpenIdByCode = "https://api.weixin.qq.com/sns/oauth2/access_token?appid=%s&secret=%s&js_code=%s&grant_type=authorization_code";
    /**
     * 使用access_token和openId获取用户详情
     */
    public static String GetUserDetailsByAccessTokenAndOpenid = "https://api.weixin.qq.com/sns/userinfo?access_token=%s&openid=%s&lang=zh_CN";
    /**
     * 用appid和secret获取access_token请求地址
     */
    public static String GetAccessTokenByAppIdAndSecret = "https://api.weixin.qq.com/cgi-bin/token?grant_type=client_credential?appid=%s&secret=%s";

    /**
     * 使用access_token获取手机号码
     */
    public static String GetPhoneByAccessToken = "https://api.weixin.qq.com/wxa/business/getuserphonenumber?access_token=%s";
    /**
     * 通过access_token获得jsapi_ticket
     */
    public static String GetJsapiTicketByAccessToken = "https://api.weixin.qq.com/cgi-bin/ticket/getticket?access_token=ACCESS_TOKEN&type=jsapi";


}
